import request from '@/utils/request'
import { CategoryList } from '@/types/category'

/**
 * 获取文章分类
 * @returns
 */
export const queryCategoryList = (): ResponseResult<CategoryList> =>
  request({
    url: `${import.meta.env.VITE_APP_BASE_API}/category/categoryList`,
    method: 'GET'
  })
